home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
SourceCode
/
MiscKit1.7.1
/
MiscKitArchive.mbox
/
mbox
/
000102_@mail.uunet.ca…man@Trimark.com_Tue Feb 1 11:49 MST 1994.msg
< prev
next >
Wrap
Internet Message Format
|
1994-10-30
|
3KB
Received: from yvax.byu.edu by maine.et.byu.edu; Tue, 1 Feb 1994 11:49:53 -0700
Return-Path: <@mail.uunet.ca,@trimark:shayman@Trimark.com>
Received: from DIRECTORY-DAEMON by yvax.byu.edu (PMDF V4.3-3 #4169)
id <01H8DBN9NQG094DNQC@yvax.byu.edu>; Tue, 1 Feb 1994 11:34:43 MST
Received: from alaska.et.byu.edu by yvax.byu.edu (PMDF V4.3-3 #4169)
id <01H8DBFPGU3K02I0B7@yvax.byu.edu>; Tue, 1 Feb 1994 11:27:48 MST
Received: from yvax2.byu.edu by alaska.et.byu.edu; Tue,
1 Feb 1994 11:25:29 -0700
Received: from DIRECTORY-DAEMON by yvax.byu.edu (PMDF V4.3-3 #4169)
id <01H8DAQ3OH8G019R39@yvax.byu.edu>; Tue, 1 Feb 1994 11:09:51 MST
Received: from mail.uunet.ca (uunet.ca) by yvax.byu.edu (PMDF V4.3-3 #4169)
id <01H8DAMRC5OW019A2Q@yvax.byu.edu>; Tue, 1 Feb 1994 11:04:27 MST
Received: from trimark by mail.uunet.ca with UUCP id <53657(6)>; Tue,
1 Feb 1994 13:03:48 -0500
Received: from net_6_06 by Trimark.com (NX5.67c/NeXT-2.0-SAH) id AA10184; Tue,
1 Feb 94 12:43:55 -0500
Received: by net_6_06 (NX5.67d/NX3.0X) id AA00498; Tue, 1 Feb 94 12:43:54 -0500
Received: by NeXT.Mailer (1.95)
Received: by NeXT Mailer (1.95)
Date: Tue, 01 Feb 1994 12:43:54 -0500
From: shayman@Trimark.com (Steve Hayman)
Subject: how about a misckit MiscDocument object?
To: misckit@byu.edu
Message-Id: <9402011743-AA10184@Trimark.com>
Content-Transfer-Encoding: 7BIT
Status: RO
I wonder if anyone has given any thoughts to writing some sort of
MiscDocument object to facilitate the writing of multi-window
multi-document applications. Something that would take care of
the typical Document menu and provide functionality for New, Save,
Save As, Open, Revert to Saved, etc etc.
I'm just thinking out loud here. You probably really want two
objects; one in the main nib file - let's say MiscController - that
takes care of loading new nibs every time you do Document > New
(and shifting the new window over a bit, etc etc) and perhaps a
MiscDocument object inside each nib that takes care of saving the
window's contents in a file or initializing it from a file.
Perhaps you appoint a delegate object that manages the actual saving
and loading of files - maybe it only needs to understand two messages,
- saveIn:(const char *)filename
- loadFrom:(const char *)filename
and MiscDocument sends its delegate the appropriate saveIn: or loadFrom:
message, and keeps track of the file name, sets the window title, etc etc.
Maybe a MiscDocument without a delegate just saves a window and its
contents as a typed stream file with a specified extension.
My goal would be to have a couple of palettized objects that would
let me write the typical developer class exercise of a multi-window
text editor with no extra code at all.
I'd be interested in hearing anyone's thoughts on this, potential
pitfalls, objects that already exist that do this, etc etc. In
the MiscKit Authors.rtf file, Don says he's working on a
MiscInfoController. That would blend in very nicely with something
like a MiscDocumentController.
Regards,
Steve
P.S. Thank you Don for the latest release of the kit! MiscString
in particular is saving me a lot of time.
---
Steve Hayman
Steve Hayman + Associates NeXTSTEP Consulting Toronto, Ontario
shayman@Objectario.com (416) 769-8995